import {defineStore} from "pinia";

const uploadStore = defineStore("uploadStore", {
    state:()=>{
        return {
            allowPageExt:  ["MD"],
            allowVideoExt: ["MP4"],
            allowImageExt: ["JPG","JPEG"],
            allowAudioExt: ["AAC","MP3","WAV"],
            updateFlash:{
                image:false,
                video:false,
                movie:false,
                audio:false
            }
        }
    },
    getters:{
        allowExt: state=>[...state.allowPageExt,...state.allowVideoExt,...state.allowImageExt,...state.allowAudioExt],
    }
})

export default uploadStore;